﻿using Entities;

namespace Business
{
    interface IUserBusiness
    {
        /// <summary>
        /// Validates the user.
        /// </summary>
        /// <param name="account">The account.</param>
        /// <param name="password">The password.</param>
        /// <returns></returns>
        bool ValidateUser(string account, string password);

        /// <summary>
        /// Gets the user.
        /// </summary>
        /// <param name="account">The account.</param>
        /// <param name="password">The password.</param>
        /// <returns></returns>
        User GetUser(string account,string password);

        /// <summary>
        /// Gets the user.
        /// </summary>
        /// <param name="account">The account.</param>
        /// <returns></returns>
        User GetUser(string account);

        /// <summary>
        /// Forgots the password.
        /// </summary>
        /// <param name="account">The account.</param>
        /// <param name="email">The email.</param>
        /// <returns></returns>
        bool ForgotPassword(string account, string email, out string message);

        /// <summary>
        /// Validates the email.
        /// </summary>
        /// <param name="account">The account.</param>
        /// <param name="email">The email.</param>
        /// <returns></returns>
        bool ValidateEmail(string account,string email);
    }
}
